home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / rpm / ugid.h < prev   
Encoding:
C/C++ Source or Header  |  2008-10-22  |  686 b   |  36 lines

  1. #ifndef H_UGID
  2. #define H_UGID
  3.  
  4. /** \ingroup rpmio
  5.  * \file rpmio/ugid.h
  6.  */
  7.  
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. /*
  13.  * These may be called w/ a NULL argument to flush the cache -- they return
  14.  * -1 if the user can't be found.
  15.  */
  16. int     unameToUid(const char * thisUname, /*@out@*/ uid_t * uid)
  17.     /*@modifies *uid @*/;
  18. int     gnameToGid(const char * thisGname, /*@out@*/ gid_t * gid)
  19.     /*@modifies *gid @*/;
  20.  
  21. /*
  22.  * Call w/ -1 to flush the cache, returns NULL if the user can't be found.
  23.  */
  24. /*@observer@*/ /*@null@*/ char * uidToUname(uid_t uid)
  25.     /*@*/;
  26. /*@unused@*/
  27. /*@observer@*/ /*@null@*/ char * gidToGname(gid_t gid)
  28.     /*@*/;
  29.  
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33.  
  34. #endif  /* H_UGID */
  35.  
  36.